package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_AppList")
@ApiModel(value = "BpmAppList", description = "应用列表")

public class BpmAppList implements Serializable {
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnId;

	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "应用ID", required = false)
    private String appId;

	@Column(name = "appName")
	@ApiModelProperty(value = "应用名称", required = false)
    private String appName;

	@Column(name = "parentFolderid")
	@ApiModelProperty(value = "上级节点", required = false)
    private String parentFolderId;

	@Column(name = "OWNER")
	@ApiModelProperty(value = "应用权限所属用户", required = false)
    private String owner;

	@Column(name = "anonymous")
	@ApiModelProperty(value = "", required = false)
    private String anonymous;

	@Column(name = "percentage")
	@ApiModelProperty(value = "", required = false)
    private String percentage;

	@Column(name = "icon")
	@ApiModelProperty(value = "应用图标", required = false)
    private String icon;

	@Column(name = "installIcon")
	@ApiModelProperty(value = "应用名称", required = false)
    private String installIcon;

	@Column(name = "sortNum")
	@ApiModelProperty(value = "排序", required = false)
    private String sortNum;

	@Column(name = "STATUS")
	@ApiModelProperty(value = "状态", required = false)
    private String status;

	@Column(name = "isFolder")
	@ApiModelProperty(value = "是否节点", required = false)
    private String isFolder;

	@Column(name = "isTemplate")
	@ApiModelProperty(value = "模板", required = false)
    private String isTemplate;

	@Column(name = "appCenterFlag")
	@ApiModelProperty(value = "", required = false)
    private String appCenterFlag;

	@Column(name = "WF_Version")
	@ApiModelProperty(value = "版本", required = false)
    private String version;

	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "创建人id", required = false)
    private String addName;

	@Column(name = "WF_AddName_CN")
	@ApiModelProperty(value = "创建人", required = false)
    private String addNameCn;

	@Column(name = "WF_DocCreated")
	@ApiModelProperty(value = "创建时间", required = false)
    private String docCreated;

	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "更新时间", required = false)
    private String lastModified;

	@Column(name = "rootOrgId")
	@ApiModelProperty(value = "应用组织根节点", required = false)
    private String rootOrgId;
	
	@Column(name = "roles")
	@ApiModelProperty(value = "roles", required = false)
	private String roles;

	@Column(name = "xmlData")
	@ApiModelProperty(value = "xmlData", required = false)
    private String xmlData;
    
    private static final long serialVersionUID = 1L;

}